﻿using DirectSell.Model.Query;
using DirectSell.Model.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Webdiyer.WebControls.Mvc;

namespace Direct.IDAL.Manager.UserCenter
{
    /// <summary>
    /// 会员列表仓储接口
    /// </summary>
    public interface IMemberListRepository:IBaseManagerRepository
    {
        /// <summary>
        /// 查询会员列表
        /// </summary>
        /// <param name="managerCode"></param>
        /// <returns></returns>
        Task<PagedList<UserInforMationDetails>> QueryList(BaseCondition condition);
        /// <summary>
        /// 冻结会员
        /// </summary>
        /// <param name="userCode"></param>
        /// <returns></returns>
        bool FrozenUser(string userCode);
        /// <summary>
        /// 启用会员
        /// </summary>
        /// <param name="userCode"></param>
        /// <returns></returns>
        bool EnableUser(string userCode);
        /// <summary>
        /// 修改资料
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        bool EditMessage(UserInforMationDetails info);

    }
}
